package com.qiaofang.mapper;

import com.qiaofang.common.model.PageDTO;
import com.qiaofang.dto.PremisesDynamicDTO;
import com.qiaofang.entity.PremisesDynamic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;
import tk.mybatis.mapper.common.ExampleMapper;

import java.util.List;
@Mapper
public interface PremisesDynamicMapper extends BaseMapper<PremisesDynamic>, ExampleMapper<PremisesDynamic> {

    /**
     * 查询动态总数
     * @param premisesDynamicDTO
     * @return
     */
    Long listPremisesDynamicCount(@Param("premisesDynamicDTO") PremisesDynamicDTO premisesDynamicDTO);

    /**
     * 查询楼盘动态列表
     * @param premisesDynamicDTO
     * @param page
     * @return
     */
    List<PremisesDynamic> listPremisesDynamic(@Param("premisesDynamicDTO") PremisesDynamicDTO premisesDynamicDTO, @Param("page") PageDTO page);
}
